namespace NBody
{
    using System;
    
    public class DensityParticle : IDParticle
    {
        private double density;
        
        public DensityParticle(double mass, double x, double y, double z, double vx, double vy, double vz) : base(mass, x, y, z, vx, vy, vz)
        {
            ID = 0;
            density = 0.0f;
        }
        
        public DensityParticle(Particle p) : base(p.Mass, p.X, p.Y, p.Z, p.Vx, p.Vy, p.Vz)
        {
            ID = 0;
            density = 0;
        }
        
        public DensityParticle(IDParticle p) : base(p.Mass, p.X, p.Y, p.Z, p.Vx, p.Vy, p.Vz)
        {
            ID = p.ID;
            density = 0;
        }
        
        public double Density
        {
            get { return density; }
            set { density = value; }
        }
    }
}
